package com.better.frontend.Iservice.paper;

import com.better.backend.mqReceiverService.calType.model.CalTypeModel;
import com.better.backend.mqReceiverService.questionReceiver.model.ExamPaperModel;
import com.better.backend.mqReceiverService.questionReceiver.model.PointPaperModel;
import com.better.common.base.ServiceResponse;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 编辑试卷接口
 * Created by xq on 2017/11/11.
 */
public interface PaperService {
    /**
     * 保存试卷信息信息
     *
     * @author:
     * @date :2017/11/8
     */
    public ServiceResponse savePaper(ExamPaperModel paperModel, MultipartFile excelFile) throws Exception ;

    /**
     * 查询试卷信息信息
     *
     * @author:
     * @date :2017/11/8
     */
    public ServiceResponse selectPaper(ExamPaperModel paperModel);

    /**
     * 通过小题ID设置题目知识点
     * @param pointPaperModels
     * @param quesId
     */
    public ServiceResponse savePoint(List<PointPaperModel> pointPaperModels,String quesId,String examID,String subId,String gradeId);

    /**
     * 新增分析模板
     * @param calTypeModel
     * @return
     */
    public ServiceResponse saveCalType(CalTypeModel calTypeModel);

    /**
     * 通过考试ID，发布试卷
     * @param examID
     * @return
     */
    public ServiceResponse publishPaper(String examID);

    /**
     * 根据考试ID，删除本次考试所有已导入的试卷信息
     * @param examId
     * @return
     */
    public void deleteByExamId(String examId);

}
